//
// Created by PC on 2017/9/23.
//

#ifndef MYSTACK_MYSTACK_H
#define MYSTACK_MYSTACK_H

class MyStack{

public:
    MyStack(int size);
    ~MyStack();
    bool stackEmpty();
    bool stackFull();
    void clearStack();
    int StackLength();
    bool push(char elem);
    bool pop();
    void stackTraverse(bool isFromButton);

private:
    char *m_pBuffer;
    int  m_iSize;
    int  m_iTop;
};



#endif //MYSTACK_MYSTACK_H
